use template in overlay lighten/darken mode to reduce amount of code
clean up old overlay code (again)
fix intellisense error