added edit ticket functionality