To show/hide loader image and disable/enable user interaction