fix for ajax saving empty title, submitting page