added setVisibility method for the list fragment