added a view model on the main page. added a relay command class to facilate the use of commands