change canvas to correct working in mobile, with size