Made it look neater and added resize option