Refactored resize top (now working)