@emir-hasanbegovic retrieved results and refactored activity so that it is smaller