Move manage panel to template code