fixing css and spawnedFromView === undefined error