timeout managment and grid card log out

might have a bug with timeout