Added preferences panel. see prefsfragment.java and setpreferenceactivity.java