added styles, configuring events