redirect to right place in logout