added resizing features
fixed bug