add UIAction and make InstanceDetail view customizable
clean up