clean whitespace
refactor of button io