added modal + ajax functionalities