Implemented preferences activity.