added functionality to post button. also introduced some underlying concepts regarding modules and pulling template vars