changed resizing to maintain title spacing