added controller and model + block rendering