connected nib to buttons and text fields