fix saveas button show and hide bug