Change overlayContent() to take an object as its only parameter