Added View scaling & updated window management

Added validateVideoMode()

Fixed a bug where the same command would get added to the history
multiple times