Use typesafe comparison to get around strange casting behavior
Disable action buttons & search widget for readonly mode