Created the dyanamic menu rendering.