add mvc structure, withs commands and implements mouse listener