adding pages component
fixing missing main script