Button disabling added. UI interface improved. Sorry for bad code.