moved mobile fix into resize function