add window options and variables