update and unfinish sidebar