More bug fixes
Added preview mode button
Preview mode works now