cleaned up application controller . rb