implemented Timer and started GUI implemention