added height calc for itemContainer. simplified some code