added logout and profile and account controls.