fixed problem where items changed position based on window size
data is now stored properly