Added handling in a new thread of add case button. Minor code
refactorings throughout the app.