improves to work with iframe app