Cache common $ selectors to variables
Only hide display fields when edit fields exist

fixes #284 on github