Added active class to the correct menu buttons after fixing collapse function.