added mobile detect for ress