Changed hiding to work properly on mobile