ataken @user_detail to index def