added user sidebar
added transactions to prevent last user being deleted