Add api controller and modify view