changing the buttons dynamically