ticking items and resizing window work properly