Update btn loader and sho/hide loader function