solved problem with buttons (case when error occurs while connecting)