fixed pins controller to handle bootstrap flash messages