Open editor only on button click

Fixes #18