update templates to navigate the top frame