Fixed syntax errors and linked match search to sidebar