showing loader before submit-a-cat ajax call is made