making tool buttons work. still a bit to do...