clean up extra space for button pressed parameter