User profile and event handling added