How to block/Unblock application?