Only hide display fields when edit fields exist

fixes #284 on github