SeSeparated logic from html