Fix navbar elements going out of bounds and overlapping