Full new implement of drawing rect and updating it