created individual methods for building pages from POST data