Setting up editing stuff