Corrections to controller code and main.html