Added badge for dependency and refactored controllers