tidying up routing and layouts
model handling added, route function needs to now make calls to mpx
wip - post handling