fuck templates, popup, ajax wrap, sql