Handle clicks on inbox items, other improvements