add logout and some layout for training view