Adds class to handle nav buttons