moved the function after_map_loaded() to the template, and added user language to the forms