make active work for fragments