writing delegate for controls and adding buttons and volume control