Fixed the condition of the active tab (routing) in navbar
Converted indents to spaces in accordance with PSR-2 "coding style guide"