added flexibility of different window
mini file updated