remove infinite loop in cellForItem method