functionality for iframe and dynamic header