added update and delete
fixed bug with user view
various cosmetic changes