fixed template layering issues. overlay is not on top with transparency