added connections from buttons to slots in state.h