Add button to clear 'Logs' window
Minor code refactoring