dynamically change box positions and item colors