added an events and profile controller