create new and edit ticket functionality complete