fixing redirect action that didnt do exit after header lcoation