Implemented drop-down menu at end of loop