add overlay demo and update its api