some changes

add highlighting buttons, check invalid operations