rename template elements, divide posts and input