moved buttons from systick to mainloop