realize function of controling background's hide and display