Moved all state magagement to top component. Automatically fixed a bug where selecting an lower item and then filtering fucked up the highlight.