reset and layout