refactoring of views, tables and playday pagination