moved page templates to a subdirectory
moved functions to subdirectory
moved components into templates folder