Use appitem instead of always recreating a jquery object

Also fix some wrong data storages