Move command action to the view
Add test project and one test