Add panToItem and setLayoutAndPanToItem