adding the pin controller and views