initialize controller