fix bugs on promote leave; added edge hide mechanism