need to remove controller logic from views