controller initialization refactoring done.