addressed issues raised during code review
fixed button signal connection