fixed enable buttons when switching to sql layer CDB-1402