implementing base and profiles controllers for api
resovling merge conflict