Dynamically creation of button does not work or what?