adds function for opening new modal window