added listeners to some buttons