Trying to create preferences dialog