implemented cursorloader in main activity