Add updateContent method to ScrollPane