Move logic for displaying the admin button to view model instead of JS