Refactor some css and change navigation function to edit subjects after clicking on them