added settings to admin view, changed templates structure, fixed a lot of little bugs