Minor style changes
Added AJAX call for session state