added ticket functionality