Added preferences view. Fixes #2