added session for locale

also fixed some formating