Made the pop up work not on a small screen