fixed bug and redirecting when adding friend