work in progress...app template and prelim ajax