Fixed UI bugs

* Fixed issue where clicking on the current statement clears the child state.
* Fixed issue where type filters remained selected after navigating to a
child statement.