using median rather than mean
wrapping all submit buttons in forms for brig