refactor search show action and model