refactor to use PRG pattern istead of querystrings and JS appended fields
fix empty session
cleanup