move routes into separate file
renames function
adds static rendering