Added error message management and button disabling for making GUI more robuts.

Change-Id: I0cba48ebb3ae9cb2f6ffbba8523c79ad1d13082e