Added somewhat better logic for the display options, which now allows display above and below. Also, it won't cause a PHP notice now.