added mobile check on resize