Used angular-ui-router module, implemented some functionality on imageService and categoryService