Added resizing of top line - need to make general solution