Updated ticket controller