Adding conditional for mobile refresh