fixed few styling issues, made pagescontroller into service for testibility later