I accidentally pressed something which created an hierarchy view tab top of the class view as presented below:
I'd like to know how to remove it.
The term for that type of hierarchy format is a breadcrumb. You can disable it with the following:
Right click on it and select Hide Breadcrumb