added option to change window size