Made toolbar buttons work.