Hiding html elements isn't working out