add overlay functionality