Some additions

Added a baseViewModel class that all ViewModel classes should inherit
from so that makes it able to close the window in the VM.