change style and add resize