step 2 merging createButton and buttonview