pass url param from controller and build html