Added modal functionality to frontend