added appear/hide in the fragment