Call the attach hooks after adding a view to a panel.