Added some gui for error handlings