add more function to buy tickets page