reorganized overlay styling
restructured helper functions