main module rendering