buttons work now for dyn. added elements