Implement the event handler for profiles
Implemented settings event handler