Implemented edit action in ticket controller