Work on new modal

Pulling out old modal code for open/close and the corresponding actions in application.js. Need to test this on mobile too