config window size, added main layout