added ajax forms for post options
fixed bugs with custom post editor