fixing left panel behavior