Adding apt-get update
Update the refresh button
Improving error handling of upt-get update
Cleanup installCandidate