purchase ticket basic functions done