added routine to check multiple buttons without polling