Added modal window but close and open not working