Quits unused code. Adds selects in frontend