Added ability to only show tabs with request data and request the data if requested, added notification_histories table