created button panel and added the buttons to view