removed resources and reorgd main index