Adding events and background color