added fail state to modal buttons