bug fixing for reload button