put playlist logic in model, made one page