processed form submissions and handling ajax requests