remade gui to use repository to fetch images