fix logout action
fix search result scoring  calculation