move command execution to view model

make the sample look a little more like what I want it to in a real
application