Smoothened the UI by using invokeAndWait instead of invokeLater which

keeps the Eventqueue small and therefor responsive.