change frame test code for use in app's page