change routes and controller
posts controller resolved