adding borders and padding