added separation of methods in DeckPanel for getVisibleWidget and getVisibleWidgetIndex