move logic to web page front