Fixed Issue #29

Added two buttons which will be toggled to switch between a preview and an edit view.