adjusted modal size for smaller screens, added touch events for modal buttons