Adds active states to buttons and adds proper links to buttons