Finalized size change functionality. Completed iteration 2