in my local database, I have no problem with @if statments but I just figured out that in product, these were causing all my CRUD functionality to not work. removing them seems to be fixing this...