added second layout option for sidebar. only on cards and tags views. also remove sidebar if user has no friends.