updated overlay style and function