moved setting the frame and message to masterVC and fixed close button hack