implemented on click listeners for pending invites
finished all ui, added database