fixed layout issues in overlay, closed #3