refactoring UI / added function to load data from mongodb