Changed redirect refresh to header location