Fixes view and preview buttons on unit page

@cahrens @andy-armstrong