Use more elegant design to determine submission of post or comment