added user state logic to front page buttons
removed a debugger burried in the code