Added reports retrieval functions

Added reports retrieval functions.
Retrieving existing reports again will only update the retrieved time.
Added codes to make tabs remain when there are actions done on that
particular tab.