Added option to set popup window height and width