fixing setData method and showing correct position