moved methods to application controller

separated controllers for readability.