FIxed some small css error and changed the control flow for shortest paths