intial work for iframe environment