self contained fragment

move control/logics from search favorite activity to search favorite fragment such that the fragment is self-contained.