dynamically set window size and tick size, icons