Fix bootstrap modal bug and scaling on mobile devices