added additional debug logging; modified button to require (partial) class name