Move dosearch into template and use bridge to transfer state into isolated scope