removed a resize event and added css style