Working on resize method