added conditional for footer message