switch the div/modal to directive version