pattern match on fun parameter
better error dialog
show error message "the metro style"
refactoring
added progress dialog and removed progress ring