split methods into smaller parts and cached dom nodes