Added hide window option