Implemented edit action for the TicketsController.