added event handler for post submission page