adding redirect functions to dashboard