moved users code into upper part of the page