More changes to the modal.

The modal now behaves better on mobile devices