Fixed edit button, optimized code, added edit mustache template and settings controller.