define pages behaviors

since for developing purpose, admin and client pages are the same, this file handle which page I want to visualize