disabling the button when data is loadding from the database