Fixed preview button and moved editor js