added pins and changed MVC