Adding buttons to toolbar and listeners to activities.