WARNING ugly code, update ok, delete ok, view cahcing problem