Handle configure and expose events.