added the settings page and beginning of the events bag