fixed a few bug regarding mobile devices

if the device is already small the changes didnt take effect. Now its
fixed