refactor gui (backend)

add config variables check function