Fixed modal functionality that was accidentially deleted