implemented frontend controllers/services/views for todos and fixed bugs in backend