Seperate the mainpage activity and the event activity.