integrate UI with logic of both type of play pages