Removed the redundancy in reload popup code.