added fragment codes, fix controller, added fragment xml