adding redirect class