add logout controller and moving stock one level down on the data tree