changed way of getting data as it did not work with rest service.
FlagFragment working