wrapping GUI buttons for PSM input
merging change from previous push