Added all button functionality