updated modal function
fixed css