Added function to create buttons