added products page and code refactoring