add seed file and refactored controller methods