change pins controller to avoid redirect loop