Fixed and improved resize problems(like the regretion when clicked).