optimize mobile style for xAttach