removed unused method
Added permitted params to post, fixed preview bug
removed debug log