Title: Composition operators on weighted Bergman spaces and Hardy spaces