add menu window, refactor settings (BROKEN)