Cleaned up commandhandlers.
Moved HistoryLineEdit.