added javascript to prompt view when showing embeded