move route functions to controllers; edit lorem ipsum page