add sided inv and finshed the gui , and fixed some sync issue

Signed-off-by: makidelille <makidelille@hotmail.fr>