Mobile version of form does not work properly