Did more work on gui and started to create a thread to automatically 
send tick events