GUI now work fine and stable. Also error handling mechanism completely changed.