separated resource displaying page from pages.py