change background color of the fragment.
Improve coding.