refactor - add factory method
fix tests - more fixes for story "Default panel opening on search results page and gene page"