added callback for ViewStack changes