Added basic functionality to most buttons.