finish rewrite the button events

*TODO:Implement the clock setting