add synchronise screens rendering code