Step 1 merging createbutton and buttonview