modified timer funcationality. Added widget buttons