insideButtonPressed now works