added responsive action to the modal to replicate some app like behavior