cancel changes on hide() and fix the find port option