improve metadata form show/hode flow