fixed reloading iframe issue, cleaned up code. COMPLETELY FUNCTIONAL.