Frontend working area.

Changed frontend so that preview reflects the size of the working area.