Adds buttons and their functionality