added new method to haddle functionality for fragment