public List<Recipe> getSearchListFromIndex() {
        if (searchList.isEmpty()) {
            return searchList;
        }
        int toIndex = searchIndex + 4;
        if (toIndex > searchList.size()) {
            toIndex = searchList.size();
        }
        List<Recipe> returnlist = searchList.subList(searchIndex, toIndex);
        searchIndex += 4;
        if (searchIndex >= searchList.size()){
            searchIndex = 0;
        }
        return returnlist;
    }