ensure only one overlay shows at a time, and transition nicely from one to the other