added css to handle resizing