Adds custom dialog to show preferences

Fixes #3