closing modal after create