added fixes to left view and db
invitation fix