Created function for BugpickerFragment