Before switching to angular