changed pin view and controllers