Made the controller static and implemented data surce