Adding dialogs in order to select background and clear the log.