Added remove method to preference