solved javascript hiding issue on show page