basic implementation of the main page with data