moved usernmane from layout to controller