Implement edit action for ticket controller