Added function for disabling export button