Added ajax call for closing modal