Fixed refresh button being enabled in edit mode