Added close on document click