moved api and started pages controller