Added button hiding logic to common models.js init function.