adding number formatter and window size constraints