Added modal functionality.