added missing css
protected some array index calls on upgrades