now, all buttons work correctly