changed margins,heights and widths to precentage based