move html in inner template