add main to component