K3.0 admin template :Move code outside of view