added events to buttons, nth css