rework gui code: left sidebar