remove logic from views