updated some tests but added logical controllers and api
updated routes and controller action