changed client width/height to offset width/height to account for border sizing