added validates, alerts, theme