Code to edit properties