added code for MODAL window