working on layout. implemented most of the getW/Hs.