minimize/unminimize/maximize/close as API actions now