play functionality on index