fix broken prependContent, split form() into a few functions for easier overriding