moved places search to proper controller function