resize functionality and ui working.