trying to have auto redirect, still need to fix