Buttons handling in main mode.
Time edit mode.