adjusting window size and getting rig of toolbar