Added edit functionality for tickets.