fixes preview button in edit story page and adds sidebar for it