Add showLoader and hideLoader function for page