rearrange card menu and show gear on closed view