Experimenting with Debug
added break and experimenting with debug function
corrected regex in preg-replace and added a br tag after navigation