fixes for search and replace functionality and removed less-middleware module.