fixing some bugs

"To main" moved into base.html
Fixed bug with language changing on main page