setup :lid in model, controller and views