Fix NameError. Looks like the /session view is never used now...
Clean up embedding