Updating JS and layout for mobile edit