move ul to the template