Close search header mat

Fixes #458