made if statement for overlay
reverted plugin.xml to original for pull request