taking loadData() off from onResume() to prevent loop