frontend, backend changed

changed Backend but does nothing now,
moved code from Main to Frontend to translate