Removed unnecesary tags
Updated overlay function