cleaned up controllers using helper files