sends over button indexed, debug messages
fixed merge conflict