add button
modified debug
add 3slots and handling functions