resize box mostly working