(refactor/ui) Refactored createpage to use stacheservice instead of controller for api calls