added some preferences, improved UI