added option to start minimized