Adding auto close to sections